
import java.io.*;
import java.util.*;



public class model extends modelling {
	

	public static void main(String[] args) {
		modelling vh = new modelling();
	int choice;
	try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	do
			{

		System.out.println("Press 1 to Begin : ");        
		System.out.println("Press 2. to Exit : ");        
		
			choice = Integer.parseInt(br.readLine());
			{
			switch(choice)
			{
			case 1 :
	System.out.println("Enter First Team : ");	
	Scanner scanner = new Scanner(System.in);
	String firstteam = scanner.next();

	System.out.println("Enter Second Team : ");    
    Scanner scan = new Scanner(System.in);
	String secondteam = scan.next();

	System.out.println("Enter Betting Odds : Must be in between 1.60 to 2.0 ");	
	Scanner scanne = new Scanner(System.in);
	Double odds = Double.parseDouble(scanne.next());

	System.out.println("Ans : ");        
	String ans = vh.findWinner(firstteam,secondteam,odds);	
	System.out.println(ans);
	break;
			case 2: 
				System.out.println("Cioa!");
				System.exit(0);
				break;	
				
			default:
	System.out.println("Invalid selection :");
	break;
	}
			} 
			}
	while(choice != 5);
	}
			catch (Exception ex){
				ex.printStackTrace();
				}

	}
	

}